﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UnityEngine;
/// <summary>
/// 选择目标的方式
/// </summary>
public enum TargetsApplyType 
{
    /// <summary>
    /// 对所有符合的目标生效
    /// </summary>
    All,
    /// <summary>
    /// 玩家手动选择一个
    /// </summary>
    Select,
    /// <summary>
    /// 从符合的目标中随机选择，需要数量参数
    /// </summary>
    Random
}
/// <summary>
/// 技能（法术牌、英雄技能、亡战吼语都属于技能）
/// </summary>
[CreateAssetMenu(fileName = "SkillSO", menuName = "CardGame/SkillSO")]
public class SkillSO: ScriptableObject
{
    public int Id;

    public string Name;
    /// <summary>
    /// 描述
    /// </summary>
    public string Description;
    /// <summary>
    /// 对象选择器
    /// </summary>
    public TargetSelectorSO TargetSelector;

    public TargetsApplyType TargetsSelectType;

    public int RandomCount;
    /// <summary>
    /// 对目标施加的效果
    /// </summary>
    public string[] Effects;
    /// <summary>
    /// 效果的数值
    /// </summary>
    public int[] EffectArgs;
}

